package com.example.springbootdemo.extend;

import java.util.Collection;

public class Main {

    public static void main(String[] args) {
        Yellow yellow = new Yellow();
        doPerson(yellow);
    }

    private static void doPerson(Person person) {
        person.say();
        person.talk();
    }
}
